<?php

$a = 1;


function inc(&$x){
  $x++;
  echo $x;
}


echo inc($a);
echo $a;
